home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / BatchProcessor$OpenSchemaCommand.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.1 KB  |  26 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseApplication;
  4. import com.extensibility.xml.URI;
  5.  
  6. public class BatchProcessor$OpenSchemaCommand implements BatchProcessor.BatchCommand {
  7.    // $FF: synthetic field
  8.    final BatchProcessor this$0;
  9.    URI uri;
  10.  
  11.    public BatchProcessor$OpenSchemaCommand(BatchProcessor var1, URI var2) {
  12.       this.this$0 = var1;
  13.       this.uri = var2;
  14.    }
  15.  
  16.    public synchronized boolean doCommand() throws InterruptedException {
  17.       BaseApplication.getApplication().openDocument(this.uri);
  18.  
  19.       while(this.this$0.isDocAddedToDesktop(this.uri) == null) {
  20.          Thread.yield();
  21.       }
  22.  
  23.       return true;
  24.    }
  25. }
  26.